﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Exhibition.Common.Meta;

namespace Exhibition.Common.Helper
{
    public class BuildTable<T>
    {
        StringBuilder builder = new StringBuilder();
        public  string LoadTable(string tablename, List<T> lstcontent)
        {
            

            List<CommFunction.ReportTableColumn> columns= CommFunction.LoadReportTableColumn(tablename);
            columns.ForEach(BuildTableHead);
            
            return "";
        }





        private  void BuildTableHead(CommFunction.ReportTableColumn column)
        {
            builder.AppendFormat("<td>{0}</td>",column.sourceColumnName);

        }
    }
}
